package com.easygoods.controller;

import com.bestvike.stone.spring.controller.BaseController;
import com.bestvike.stone.spring.rest.common.CommonResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by 许崇雷 on 2017-09-18.
 */
@RestController
public class PingController extends BaseController {
    @GetMapping("/ping")
    public CommonResponse<Map> ping() {
        Map<String, Object> map = new HashMap<>();
        map.put("ret", "pong");
        return success(map);
    }
}
